x86/time: report correct frequency of Xen PV clocksource
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Thu, 5 Mar 2020 10:37:01 +0000 (11:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Mar 2020 10:37:01 +0000 (11:37 +0100)
commit98cf186a3eb07f19d8178ab309185b1376a18225
tree8338ccc74559e3df2cee4fd2b6adc973843785f6
parenta12c52d18cf67392ea5ec12b590ce5e5061bee54
x86/time: report correct frequency of Xen PV clocksource

The value of the counter represents the number of nanoseconds
since host boot. That means the correct frequency is always 1GHz.

This inconsistency caused time to go slower in PV shim on most
platforms.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
master commit: c52bd545de461127f3ca67c48e8fef7145402035
master date: 2020-02-14 18:01:52 +0000
xen/arch/x86/time.c